<template>
  <view class="card-box" 
    @click="contractClick(contractInfo)"
    :data-spmCntSuffix="'ChatAiPage.contractCard@1.mores'"
    :data-custom="1"
    :data-spm="1"
  >
    <view class="card-title">
      <view class="title-txt single-line-text">签署旅游合同👇🏻</view>
    </view>
    <image class="card-img" src="https://cdn1.visiotrip.com/h5AndMini/2023-11-11/contract-card-bg.png" />
    <view class="card-content">
      <view class="card-btn">立即签署</view>
    </view>
  </view>
</template>

<script>
export default {
  components: {
  },
  props: {
    contractInfo:{
      type:Object,
    }
  },
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
    contractClick(contractInfo) {
      //由于字段过长，所以存缓存
      uni.setStorageSync('contractInfo', this.contractInfo)
      this.$navTo('/packageAI/pages/contract/contract',{},'navigateTo')
    },
  },
};
</script>

<style lang="scss" scoped>
.card-box {
  width: 100%;
  height: 435rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.7);
  border-radius: 26rpx;
  border: 1rpx solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10.8695652173913px);
  margin: 20rpx auto 0 auto;
  .card-title {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 24rpx 24rpx 12rpx 24rpx;
    border-radius: 26rpx;
    .title-txt {
      height: 28rpx;
      font-size: 28rpx;
      font-weight: 600;
      color: $sl-color-dark-grey;
      line-height: 28rpx;
    }
  }
  .card-img {
    width: 478rpx;
    height: 267rpx;
    margin: 0 auto;
  }
  .card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 26rpx;
    padding: 12rpx 24rpx 24rpx 24rpx;
    .card-btn {
      width: 454rpx;
      height: 68rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      background: $sl-color-btn-background;
      border-radius: 34rpx;
      font-size: 28rpx;
      font-weight: 500;
      color: #FFFFFF;
      line-height: 28rpx;
    }
  }
}
</style>
